package com.hkbigdata.transform;

import org.apache.flink.api.common.functions.ReduceFunction;
import org.apache.flink.api.java.functions.KeySelector;
import org.apache.flink.streaming.api.datastream.KeyedStream;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @author liuanbo
 * @creat 2024-04-11-9:46
 * @see 2194550857@qq.com
 */
public class Flink05_TransForm_Shuffle_Anonymous {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        env.setParallelism(1);

         env.fromElements(1, 2, 3, 4, 5, 6)
            .shuffle()
                .print();
         env.execute();
    }
}
